using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using DataLayerTest.Models.Mapping;

namespace DataLayerTest.Models
{
    public partial class GameUPContext : DbContext
    {
        static GameUPContext()
        {
            Database.SetInitializer<GameUPContext>(null);
        }

        public GameUPContext()
            : base("Name=GameUPContext")
        {
        }

        public DbSet<Administrator> Administrators { get; set; }
        public DbSet<CheerMessage> CheerMessages { get; set; }
        public DbSet<CheerMessagesGroup> CheerMessagesGroups { get; set; }
        public DbSet<FitbitAccount> FitbitAccounts { get; set; }
        public DbSet<FitbitData> FitbitDatas { get; set; }
        public DbSet<IndoorExercisePersonal> IndoorExercisePersonals { get; set; }
        public DbSet<IndoorExerciseResult> IndoorExerciseResults { get; set; }
        public DbSet<IndoorExerciseType> IndoorExerciseTypes { get; set; }
        public DbSet<Message> Messages { get; set; }
        public DbSet<OutdoorExercise> OutdoorExercises { get; set; }
        public DbSet<OutdoorExerciseSocial> OutdoorExerciseSocials { get; set; }
        public DbSet<OutdoorExerciseSocial_CheerMessage> OutdoorExerciseSocial_CheerMessage { get; set; }
        public DbSet<Player> Players { get; set; }
        public DbSet<PlayerGroup> PlayerGroups { get; set; }
        public DbSet<PlayerSetTopBox> PlayerSetTopBoxes { get; set; }
        public DbSet<Professional> Professionals { get; set; }
        public DbSet<SetTopBox> SetTopBoxes { get; set; }
        public DbSet<StateType> StateTypes { get; set; }
        public DbSet<sysdiagram> sysdiagrams { get; set; }
        public DbSet<User> Users { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new AdministratorMap());
            modelBuilder.Configurations.Add(new CheerMessageMap());
            modelBuilder.Configurations.Add(new CheerMessagesGroupMap());
            modelBuilder.Configurations.Add(new FitbitAccountMap());
            modelBuilder.Configurations.Add(new FitbitDataMap());
            modelBuilder.Configurations.Add(new IndoorExercisePersonalMap());
            modelBuilder.Configurations.Add(new IndoorExerciseResultMap());
            modelBuilder.Configurations.Add(new IndoorExerciseTypeMap());
            modelBuilder.Configurations.Add(new MessageMap());
            modelBuilder.Configurations.Add(new OutdoorExerciseMap());
            modelBuilder.Configurations.Add(new OutdoorExerciseSocialMap());
            modelBuilder.Configurations.Add(new OutdoorExerciseSocial_CheerMessageMap());
            modelBuilder.Configurations.Add(new PlayerMap());
            modelBuilder.Configurations.Add(new PlayerGroupMap());
            modelBuilder.Configurations.Add(new PlayerSetTopBoxMap());
            modelBuilder.Configurations.Add(new ProfessionalMap());
            modelBuilder.Configurations.Add(new SetTopBoxMap());
            modelBuilder.Configurations.Add(new StateTypeMap());
            modelBuilder.Configurations.Add(new sysdiagramMap());
            modelBuilder.Configurations.Add(new UserMap());
        }
    }
}
